package base

import androidx.viewbinding.ViewBinding
import com.fmt.mvi.learn.gobal.log

abstract class BaseLazyFragment<VB:ViewBinding>:BaseFragment<VB>() {


    private var mHasLoadedData = false

    override fun onResume() {
        super.onResume()
//        "BaseLazyFragment onResume....".log()
        if (!mHasLoadedData) {
            loadPageData()
//            "BaseLazyFragment onResume loadPageData....".log()
            mHasLoadedData = true
        }
    }

    abstract fun loadPageData()
}